home *** CD-ROM | disk | FTP | other *** search
INI File | 1996-04-19 | 5.8 KB | 374 lines |
- [MainInfo$]
- CCVer=2.1
- Compatible20=0
- Compatible21=1
- UnitName=Progress
- NewClassName=TProgress
- ParentClassName=TGraphicControl
- DefaultPalette=Samples
- CopyrightLine=
- FormMode=0
- FormFile=
-
- [Units$]
- Lines=8
- L1=Classes
- L2=Controls
- L3=Forms
- L4=Graphics
- L5=Messages
- L6=SysUtils
- L7=WinProcs
- L8=WinTypes
-
- [ItemList$]
- Create=Method
- Destroy=Method
- Paint=Method
- OnClick=ExistingEvent
- OnDblClick=ExistingEvent
- OnDragDrop=ExistingEvent
- OnDragOver=ExistingEvent
- OnEndDrag=ExistingEvent
- OnMouseDown=ExistingEvent
- OnMouseMove=ExistingEvent
- OnMouseUp=ExistingEvent
- PercentShaded=Property
- IsHorizontal=Property
- Width=Property
- Height=Property
-
- [Global$]
- Descr=A progress bar control
- DefaultCode=1
-
- [Code$]
- Lines=5
- L1=~~~~~{ Unit-wide declarations }
- L2=~~~~~{ type }
- L3=~~~~~{ . . . }
- L4=~~~~~{ var }
- L5=~~~~~{ . . . }
-
- [Help$]
- Lines=0
-
- [Create]
- Descr=
- DefaultCode=2
- Kind=2
- Header=Create(AOwner: TComponent)
- S=0
- Ov=1
- Mode=2
- WinMessage=
-
- [CreateCode$]
- Lines=11
- L1=begin
- L2=~~~~~{ Call the Create method of the parent class }
- L3=~~~~~inherited Create(AOwner);
- L4=
- L5=~~~~~{ Set the initial values of variables and properties using }
- L6=~~~~~{ AutoInitialize procedure, generated by Component Create }
- L7=~~~~~AutoInitialize;
- L8=
- L9=~~~~~{ Code to perform other tasks when the component is created }
- L10=
- L11=end;
-
- [CreateHelp$]
- Lines=0
-
- [Destroy]
- Descr=
- DefaultCode=4
- Kind=3
- Header=Destroy
- S=0
- Ov=1
- Mode=2
- WinMessage=
-
- [DestroyCode$]
- Lines=13
- L1=begin
- L2=~~~~~{ AutoDestroy, which is generated by Component Create, frees any }
- L3=~~~~~{ objects created by AutoInitialize. }
- L4=~~~~~AutoDestroy;
- L5=
- L6=~~~~~{ Here, free any other dynamic objects that the component methods }
- L7=~~~~~{ created but have not yet freed. Also perform any other clean-up }
- L8=~~~~~{ operations needed before the component is destroyed. }
- L9=
- L10=~~~~~{ Last, free the component by calling the Destroy method of the }
- L11=~~~~~{ parent class. }
- L12=~~~~~inherited Destroy;
- L13=end;
-
- [DestroyHelp$]
- Lines=0
-
- [Paint]
- Descr=
- DefaultCode=5
- Kind=0
- Header=Paint
- S=1
- Ov=1
- Mode=2
- WinMessage=
-
- [PaintCode$]
- Lines=18
- L1=begin
- L2=~~~~~{ Determine orientation; store it so it will
- L3=~~~~~~~be available in the IsHorizontal property }
- L4=~~~~~FIsHorizontal := (Width >= Height);
- L5=
- L6=~~~~~{ Draw the framing rectangle }
- L7=~~~~~Canvas.Brush.Color := clWhite;
- L8=~~~~~Canvas.Pen.Width := 0;
- L9=~~~~~Canvas.Rectangle(0, 0, Width, Height);
- L10=
- L11=~~~~~{ Draw the progress bar within }
- L12=~~~~~Canvas.Brush.Color := clRed;
- L13=~~~~~Canvas.Pen.Width := 0;
- L14=~~~~~if FIsHorizontal then
- L15=~~~~~~~~~~Canvas.Rectangle(0, 0, Round(Width * (FPercentShaded/100)), Height)
- L16=~~~~~else
- L17=~~~~~~~~~~Canvas.Rectangle(0, 0, Width, Round(Height * (FPercentShaded/100)))
- L18=end;
-
- [PaintHelp$]
- Lines=0
-
- [OnClick]
- Descr=
- DefaultCode=7
- Ov=0
- P=0
- HandlerDecl=Click
-
- [OnClickCode$]
- Lines=0
-
- [OnClickHelp$]
- Lines=0
-
- [OnDblClick]
- Descr=
- DefaultCode=8
- Ov=0
- P=0
- HandlerDecl=DblClick
-
- [OnDblClickCode$]
- Lines=11
- L1=begin
- L2=~~~~~{ Code to execute before activating double-click
- L3=~~~~~~~behavior of component's parent class }
- L4=
- L5=~~~~~{ Activate double-click behavior of parent }
- L6=~~~~~inherited DblClick;
- L7=
- L8=~~~~~{ Code to execute after double-click behavior
- L9=~~~~~~~of parent }
- L10=
- L11=end;
-
- [OnDblClickHelp$]
- Lines=0
-
- [OnDragDrop]
- Descr=
- DefaultCode=13
- Ov=0
- P=0
- HandlerDecl=DragDrop(DragObject: TObject; X, Y: Integer)
-
- [OnDragDropCode$]
- Lines=0
-
- [OnDragDropHelp$]
- Lines=0
-
- [OnDragOver]
- Descr=
- DefaultCode=0
- Ov=0
- P=0
- HandlerDecl=
-
- [OnDragOverCode$]
- Lines=0
-
- [OnDragOverHelp$]
- Lines=0
-
- [OnEndDrag]
- Descr=
- DefaultCode=13
- Ov=0
- P=0
- HandlerDecl=
-
- [OnEndDragCode$]
- Lines=0
-
- [OnEndDragHelp$]
- Lines=0
-
- [OnMouseDown]
- Descr=
- DefaultCode=13
- Ov=0
- P=0
- HandlerDecl=MouseDown(Button: TMouseButton; Shift: TShiftState; X, Y: Integer)
-
- [OnMouseDownCode$]
- Lines=0
-
- [OnMouseDownHelp$]
- Lines=0
-
- [OnMouseMove]
- Descr=
- DefaultCode=13
- Ov=0
- P=0
- HandlerDecl=MouseMove(Shift: TShiftState; X, Y: Integer)
-
- [OnMouseMoveCode$]
- Lines=0
-
- [OnMouseMoveHelp$]
- Lines=0
-
- [OnMouseUp]
- Descr=
- DefaultCode=13
- Ov=0
- P=0
- HandlerDecl=MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer)
-
- [OnMouseUpCode$]
- Lines=0
-
- [OnMouseUpHelp$]
- Lines=0
-
- [PercentShaded]
- Descr=Percentage of the progress bar shaded
- DefaultCode=6
- IN=0
- RO=0
- PropType=Integer
- PropDefault=0
- Quote=0
- RM=0
- WM=1
- Hide=0
- DefEdit=1
- All=0
- EC=
- EU=
- Link=
-
- [PercentShadedCode$]
- Lines=10
- L1=begin
- L2=~~~~~FPercentShaded := Value;
- L3=~~~~~if FPercentShaded < 0 then
- L4=~~~~~~~~~~FPercentShaded := 0
- L5=~~~~~else
- L6=~~~~~~~~~~if FPercentShaded > 100 then
- L7=~~~~~~~~~~~~~~~FPercentShaded := 100;
- L8=~~~~~{ Update the display of the component }
- L9=~~~~~Invalidate
- L10=end;
-
- [PercentShadedReadCode$]
- Lines=3
- L1=begin
- L2=~~~~~GetPercentShaded := FPercentShaded
- L3=end;
-
- [PercentShadedHelp$]
- Lines=0
-
- [IsHorizontal]
- Descr=Orientation of the progress bar (read-only)
- DefaultCode=6
- IN=0
- RO=1
- PropType=Boolean
- PropDefault=
- Quote=0
- RM=0
- WM=0
- Hide=0
- DefEdit=1
- All=0
- EC=
- EU=
- Link=
-
- [IsHorizontalCode$]
- Lines=0
-
- [IsHorizontalReadCode$]
- Lines=3
- L1=begin
- L2=~~~~~GetIsHorizontal := FIsHorizontal
- L3=end;
-
- [IsHorizontalHelp$]
- Lines=0
-
- [Width]
- Descr=
- DefaultCode=6
- IN=1
- RO=0
- PropType=Integer
- PropDefault=90
- Quote=0
- RM=0
- WM=0
- Hide=0
- DefEdit=1
- All=0
- EC=
- EU=
- Link=
-
- [WidthCode$]
- Lines=0
-
- [WidthHelp$]
- Lines=0
-
- [Height]
- Descr=
- DefaultCode=6
- IN=1
- RO=0
- PropType=Integer
- PropDefault=20
- Quote=0
- RM=0
- WM=0
- Hide=0
- DefEdit=1
- All=0
- EC=
- EU=
- Link=
-
- [HeightCode$]
- Lines=0
-
- [HeightHelp$]
- Lines=0
-